﻿<DataTemplate 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:slec="clr-namespace:SLExtensions.Controls;assembly=SLExtensions.Controls"
    xmlns:local="clr-namespace:SLExtensions.Controls.Layers;assembly=SLExtensions.Controls"        
    xmlns:controls2="clr-namespace:System.Windows.Controls;assembly=System.Windows"
    >
    <local:LayerItem Width="{Binding Path=Width}" Height="{Binding Path=Height}" Canvas.Left="{Binding Path=Left}" Canvas.Top="{Binding Path=Top}" IsFixSize="False" >
        <local:LayerItem.Template>
            <ControlTemplate TargetType="local:LayerItem">
                <Grid x:Name="RootElement" >
                    <Image Source="{Binding Path=ImageSource}" slec:ImageExtensions.IgnoreImageFailed="True" slec:ToolTipService.ToolTip="{Binding ImageSource}" />
                </Grid>
            </ControlTemplate>
        </local:LayerItem.Template>
    </local:LayerItem>
    
</DataTemplate>